package cn.online.taxi.sso.service;

import cn.online.taxi.manager.dto.front.Driver;
import cn.online.taxi.manager.dto.front.Passenger;
import com.alibaba.dubbo.config.annotation.Service;

/**
 * @Author BinBini
 * @Date 2021/3/18 16:27
 * @Version 1.0
 */
@Service
public interface LoginService {

    Passenger passengerLogin(String phone, String password);

    Passenger getPassengerToken(String token);

    Driver driverLogin(String phone, String password, String driverLongitude, String driverLatitude);

    Driver getDriverToken(String token);

    int logout(String token);

}
